﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
using CourseArraging.UControl; 
using System.Drawing;
using CourseArraging.Common; 
using CourseArraging.Frm.bbxx;
using Stone.DataContracts;
using Stone.Library.Common;

namespace CourseArraging.Frm.jxgl
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public class FrmXyinfo : FrmToolbarBase
    {
        string xyId = string.Empty;
        string skSj = string.Empty;

        // Fields
        private IContainer components = null;
        private DateTimePicker dateTimePicker_js;
        private DateTimePicker dateTimePicker_ks;
        private GroupBox groupBox_jsfs;
        private GroupBox groupBox1;
        private GroupBox groupBox2;
        private GroupBox groupBox3;
        private Label label_jydh;
        private Label label_jydq;
        private Label label_jynj;
        private Label label_jyxm;
        private Label label_jyzy;
        private Label label_state;
        private Label label_xydh;
        private Label label_xydz;
        private Label label_xyfx;
        private Label label_xylxr;
        private Label label_xyxm;
        private Label label10;
        private Label label11;
        private Label label12;
        private Label label13;
        private Label label14;
        private Label label15;
        private Label label16;
        private Label label17;
        private Label label18;
        private Label label19;
        private Label label20;
        private Label label21;
        private Label label22;
        private Label label23;
        private Label label24;
        private Label label25;
        private Label label3;
        private Label label4;
        private Label label5;
        private Label label6;
        private Label label7;
        private Label label8;
        private Label label9;
        private Panel panel1;
        private RadioButton rbtn_ks;
        private RadioButton rbtn_t;
        private RadioButton rbtn_y;
        private RichTextBox txt_bz;
        public TextBox txt_fzmks;
        public TextBox txt_km;
        public TextBox txt_skdd;
        public TextBox txt_ymks;
        public TextBox txt_zks;
        public TextBox txt_zwh;
        private UCkcb uCkcb1;
        private XyService.XyServiceClient xydao = new XyService.XyServiceClient();

        // Methods
        public FrmXyinfo(int xy_id)
        {
            this.InitializeComponent();
            this.showData(xy_id);
            this.uCkcb1.FadeTimeSet();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.ImeMode = System.Windows.Forms.ImeMode.OnHalf;
            this.panel1 = new System.Windows.Forms.Panel();
            this.label23 = new System.Windows.Forms.Label();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.uCkcb1 = new CourseArraging.UControl.UCkcb();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.label_jydq = new System.Windows.Forms.Label();
            this.label_jynj = new System.Windows.Forms.Label();
            this.label_jydh = new System.Windows.Forms.Label();
            this.label_jyzy = new System.Windows.Forms.Label();
            this.label_jyxm = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.label_xyfx = new System.Windows.Forms.Label();
            this.label_xylxr = new System.Windows.Forms.Label();
            this.label_xydz = new System.Windows.Forms.Label();
            this.label_xydh = new System.Windows.Forms.Label();
            this.label_xyxm = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.txt_km = new System.Windows.Forms.TextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.label_state = new System.Windows.Forms.Label();
            this.label22 = new System.Windows.Forms.Label();
            this.txt_fzmks = new System.Windows.Forms.TextBox();
            this.txt_zks = new System.Windows.Forms.TextBox();
            this.txt_zwh = new System.Windows.Forms.TextBox();
            this.label24 = new System.Windows.Forms.Label();
            this.label25 = new System.Windows.Forms.Label();
            this.label21 = new System.Windows.Forms.Label();
            this.groupBox_jsfs = new System.Windows.Forms.GroupBox();
            this.rbtn_y = new System.Windows.Forms.RadioButton();
            this.rbtn_t = new System.Windows.Forms.RadioButton();
            this.rbtn_ks = new System.Windows.Forms.RadioButton();
            this.label20 = new System.Windows.Forms.Label();
            this.txt_ymks = new System.Windows.Forms.TextBox();
            this.txt_skdd = new System.Windows.Forms.TextBox();
            this.dateTimePicker_js = new System.Windows.Forms.DateTimePicker();
            this.dateTimePicker_ks = new System.Windows.Forms.DateTimePicker();
            this.txt_bz = new System.Windows.Forms.RichTextBox();
            this.label19 = new System.Windows.Forms.Label();
            this.label18 = new System.Windows.Forms.Label();
            this.label17 = new System.Windows.Forms.Label();
            this.panel1.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.groupBox_jsfs.SuspendLayout();
            this.SuspendLayout();
            // 
            // panel1
            // 
            this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.panel1.Controls.Add(this.label23);
            this.panel1.Controls.Add(this.groupBox3);
            this.panel1.Controls.Add(this.groupBox2);
            this.panel1.Controls.Add(this.label15);
            this.panel1.Controls.Add(this.label14);
            this.panel1.Controls.Add(this.groupBox1);
            this.panel1.Controls.Add(this.label10);
            this.panel1.Controls.Add(this.txt_km);
            this.panel1.Controls.Add(this.label16);
            this.panel1.Controls.Add(this.label_state);
            this.panel1.Controls.Add(this.label22);
            this.panel1.Controls.Add(this.txt_fzmks);
            this.panel1.Controls.Add(this.txt_zks);
            this.panel1.Controls.Add(this.txt_zwh);
            this.panel1.Controls.Add(this.label24);
            this.panel1.Controls.Add(this.label25);
            this.panel1.Controls.Add(this.label21);
            this.panel1.Controls.Add(this.groupBox_jsfs);
            this.panel1.Controls.Add(this.label20);
            this.panel1.Controls.Add(this.txt_ymks);
            this.panel1.Controls.Add(this.txt_skdd);
            this.panel1.Controls.Add(this.dateTimePicker_js);
            this.panel1.Controls.Add(this.dateTimePicker_ks);
            this.panel1.Controls.Add(this.txt_bz);
            this.panel1.Controls.Add(this.label19);
            this.panel1.Controls.Add(this.label18);
            this.panel1.Controls.Add(this.label17);
            this.panel1.Location = new System.Drawing.Point(12, 51);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(1166, 570);
            this.panel1.TabIndex = 5;
            // 
            // label23
            // 
            this.label23.AutoSize = true;
            this.label23.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label23.ForeColor = System.Drawing.Color.Black;
            this.label23.Location = new System.Drawing.Point(496, 464);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(43, 17);
            this.label23.TabIndex = 92;
            this.label23.Text = "科 目 :";
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.uCkcb1);
            this.groupBox3.Location = new System.Drawing.Point(10, 165);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(1140, 287);
            this.groupBox3.TabIndex = 79;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "课程表";
            // 
            // uCkcb1
            // 
            this.uCkcb1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.uCkcb1.Location = new System.Drawing.Point(3, 17);
            this.uCkcb1.Name = "uCkcb1";
            this.uCkcb1.Size = new System.Drawing.Size(1134, 267);
            this.uCkcb1.TabIndex = 0;
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.label_jydq);
            this.groupBox2.Controls.Add(this.label_jynj);
            this.groupBox2.Controls.Add(this.label_jydh);
            this.groupBox2.Controls.Add(this.label_jyzy);
            this.groupBox2.Controls.Add(this.label_jyxm);
            this.groupBox2.Controls.Add(this.label8);
            this.groupBox2.Controls.Add(this.label9);
            this.groupBox2.Controls.Add(this.label11);
            this.groupBox2.Controls.Add(this.label12);
            this.groupBox2.Controls.Add(this.label13);
            this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.groupBox2.Location = new System.Drawing.Point(547, 48);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(540, 111);
            this.groupBox2.TabIndex = 77;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "教员信息";
            // 
            // label_jydq
            // 
            this.label_jydq.AutoSize = true;
            this.label_jydq.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_jydq.ForeColor = System.Drawing.Color.Black;
            this.label_jydq.Location = new System.Drawing.Point(319, 51);
            this.label_jydq.Name = "label_jydq";
            this.label_jydq.Size = new System.Drawing.Size(0, 17);
            this.label_jydq.TabIndex = 20;
            // 
            // label_jynj
            // 
            this.label_jynj.AutoSize = true;
            this.label_jynj.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_jynj.ForeColor = System.Drawing.Color.Black;
            this.label_jynj.Location = new System.Drawing.Point(319, 24);
            this.label_jynj.Name = "label_jynj";
            this.label_jynj.Size = new System.Drawing.Size(0, 17);
            this.label_jynj.TabIndex = 19;
            // 
            // label_jydh
            // 
            this.label_jydh.AutoSize = true;
            this.label_jydh.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_jydh.ForeColor = System.Drawing.Color.Black;
            this.label_jydh.Location = new System.Drawing.Point(72, 78);
            this.label_jydh.Name = "label_jydh";
            this.label_jydh.Size = new System.Drawing.Size(0, 17);
            this.label_jydh.TabIndex = 18;
            // 
            // label_jyzy
            // 
            this.label_jyzy.AutoSize = true;
            this.label_jyzy.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_jyzy.ForeColor = System.Drawing.Color.Black;
            this.label_jyzy.Location = new System.Drawing.Point(72, 51);
            this.label_jyzy.Name = "label_jyzy";
            this.label_jyzy.Size = new System.Drawing.Size(0, 17);
            this.label_jyzy.TabIndex = 17;
            // 
            // label_jyxm
            // 
            this.label_jyxm.AutoSize = true;
            this.label_jyxm.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_jyxm.ForeColor = System.Drawing.Color.Black;
            this.label_jyxm.Location = new System.Drawing.Point(72, 24);
            this.label_jyxm.Name = "label_jyxm";
            this.label_jyxm.Size = new System.Drawing.Size(0, 17);
            this.label_jyxm.TabIndex = 16;
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label8.ForeColor = System.Drawing.Color.Black;
            this.label8.Location = new System.Drawing.Point(254, 51);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(59, 17);
            this.label8.TabIndex = 15;
            this.label8.Text = "所在地区:";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label9.ForeColor = System.Drawing.Color.Black;
            this.label9.Location = new System.Drawing.Point(254, 24);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(59, 17);
            this.label9.TabIndex = 14;
            this.label9.Text = "所教年级:";
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label11.ForeColor = System.Drawing.Color.Black;
            this.label11.Location = new System.Drawing.Point(7, 78);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(59, 17);
            this.label11.TabIndex = 13;
            this.label11.Text = "联系电话:";
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label12.ForeColor = System.Drawing.Color.Black;
            this.label12.Location = new System.Drawing.Point(7, 51);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(59, 17);
            this.label12.TabIndex = 12;
            this.label12.Text = "教员专业:";
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label13.ForeColor = System.Drawing.Color.Black;
            this.label13.Location = new System.Drawing.Point(7, 24);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(59, 17);
            this.label13.TabIndex = 11;
            this.label13.Text = "教员姓名:";
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label15.ForeColor = System.Drawing.Color.Black;
            this.label15.Location = new System.Drawing.Point(373, 528);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(43, 17);
            this.label15.TabIndex = 81;
            this.label15.Text = "费  用:";
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label14.ForeColor = System.Drawing.Color.Black;
            this.label14.Location = new System.Drawing.Point(10, 464);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(59, 17);
            this.label14.TabIndex = 80;
            this.label14.Text = "上课地点:";
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label_xyfx);
            this.groupBox1.Controls.Add(this.label_xylxr);
            this.groupBox1.Controls.Add(this.label_xydz);
            this.groupBox1.Controls.Add(this.label_xydh);
            this.groupBox1.Controls.Add(this.label_xyxm);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.groupBox1.Location = new System.Drawing.Point(8, 47);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(517, 111);
            this.groupBox1.TabIndex = 74;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "学员信息";
            // 
            // label_xyfx
            // 
            this.label_xyfx.AutoSize = true;
            this.label_xyfx.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_xyfx.ForeColor = System.Drawing.Color.Black;
            this.label_xyfx.Location = new System.Drawing.Point(312, 54);
            this.label_xyfx.Name = "label_xyfx";
            this.label_xyfx.Size = new System.Drawing.Size(0, 17);
            this.label_xyfx.TabIndex = 15;
            // 
            // label_xylxr
            // 
            this.label_xylxr.AutoSize = true;
            this.label_xylxr.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_xylxr.ForeColor = System.Drawing.Color.Black;
            this.label_xylxr.Location = new System.Drawing.Point(312, 25);
            this.label_xylxr.Name = "label_xylxr";
            this.label_xylxr.Size = new System.Drawing.Size(0, 17);
            this.label_xylxr.TabIndex = 14;
            // 
            // label_xydz
            // 
            this.label_xydz.AutoSize = true;
            this.label_xydz.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_xydz.ForeColor = System.Drawing.Color.Black;
            this.label_xydz.Location = new System.Drawing.Point(66, 84);
            this.label_xydz.Name = "label_xydz";
            this.label_xydz.Size = new System.Drawing.Size(0, 17);
            this.label_xydz.TabIndex = 13;
            // 
            // label_xydh
            // 
            this.label_xydh.AutoSize = true;
            this.label_xydh.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_xydh.ForeColor = System.Drawing.Color.Black;
            this.label_xydh.Location = new System.Drawing.Point(66, 54);
            this.label_xydh.Name = "label_xydh";
            this.label_xydh.Size = new System.Drawing.Size(0, 17);
            this.label_xydh.TabIndex = 12;
            // 
            // label_xyxm
            // 
            this.label_xyxm.AutoSize = true;
            this.label_xyxm.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label_xyxm.ForeColor = System.Drawing.Color.Black;
            this.label_xyxm.Location = new System.Drawing.Point(66, 25);
            this.label_xyxm.Name = "label_xyxm";
            this.label_xyxm.Size = new System.Drawing.Size(0, 17);
            this.label_xyxm.TabIndex = 11;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label7.ForeColor = System.Drawing.Color.Black;
            this.label7.Location = new System.Drawing.Point(252, 54);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(59, 17);
            this.label7.TabIndex = 10;
            this.label7.Text = "所在区域:";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label6.ForeColor = System.Drawing.Color.Black;
            this.label6.Location = new System.Drawing.Point(252, 25);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(47, 17);
            this.label6.TabIndex = 9;
            this.label6.Text = "联系人:";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label5.ForeColor = System.Drawing.Color.Black;
            this.label5.Location = new System.Drawing.Point(6, 84);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(59, 17);
            this.label5.TabIndex = 8;
            this.label5.Text = "联系地址:";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label4.ForeColor = System.Drawing.Color.Black;
            this.label4.Location = new System.Drawing.Point(6, 54);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(59, 17);
            this.label4.TabIndex = 7;
            this.label4.Text = "联系电话:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label3.ForeColor = System.Drawing.Color.Black;
            this.label3.Location = new System.Drawing.Point(6, 25);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(59, 17);
            this.label3.TabIndex = 6;
            this.label3.Text = "学员姓名:";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label10.Location = new System.Drawing.Point(513, 13);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(78, 24);
            this.label10.TabIndex = 76;
            this.label10.Text = "协议信息";
            // 
            // txt_km
            // 
            this.txt_km.BackColor = System.Drawing.SystemColors.Window;
            this.txt_km.Location = new System.Drawing.Point(547, 462);
            this.txt_km.Name = "txt_km";
            this.txt_km.ReadOnly = true;
            this.txt_km.Size = new System.Drawing.Size(125, 21);
            this.txt_km.TabIndex = 68;
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label16.ForeColor = System.Drawing.Color.Black;
            this.label16.Location = new System.Drawing.Point(10, 495);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(59, 17);
            this.label16.TabIndex = 82;
            this.label16.Text = "结算方式:";
            // 
            // label_state
            // 
            this.label_state.AutoSize = true;
            this.label_state.Font = new System.Drawing.Font("微软雅黑", 10F);
            this.label_state.ForeColor = System.Drawing.Color.Red;
            this.label_state.Location = new System.Drawing.Point(980, 13);
            this.label_state.Name = "label_state";
            this.label_state.Size = new System.Drawing.Size(37, 20);
            this.label_state.TabIndex = 93;
            this.label_state.Text = "状态";
            // 
            // label22
            // 
            this.label22.AutoSize = true;
            this.label22.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label22.ForeColor = System.Drawing.Color.Black;
            this.label22.Location = new System.Drawing.Point(614, 528);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(61, 17);
            this.label22.TabIndex = 91;
            this.label22.Text = "分钟/课时";
            // 
            // txt_fzmks
            // 
            this.txt_fzmks.BackColor = System.Drawing.SystemColors.Window;
            this.txt_fzmks.Location = new System.Drawing.Point(545, 526);
            this.txt_fzmks.Name = "txt_fzmks";
            this.txt_fzmks.ReadOnly = true;
            this.txt_fzmks.Size = new System.Drawing.Size(70, 21);
            this.txt_fzmks.TabIndex = 75;
            // 
            // txt_zks
            // 
            this.txt_zks.BackColor = System.Drawing.SystemColors.Window;
            this.txt_zks.Location = new System.Drawing.Point(75, 526);
            this.txt_zks.Name = "txt_zks";
            this.txt_zks.ReadOnly = true;
            this.txt_zks.Size = new System.Drawing.Size(95, 21);
            this.txt_zks.TabIndex = 71;
            // 
            // txt_zwh
            // 
            this.txt_zwh.BackColor = System.Drawing.SystemColors.Window;
            this.txt_zwh.Location = new System.Drawing.Point(265, 526);
            this.txt_zwh.Name = "txt_zwh";
            this.txt_zwh.ReadOnly = true;
            this.txt_zwh.Size = new System.Drawing.Size(88, 21);
            this.txt_zwh.TabIndex = 72;
            // 
            // label24
            // 
            this.label24.AutoSize = true;
            this.label24.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label24.ForeColor = System.Drawing.Color.Black;
            this.label24.Location = new System.Drawing.Point(14, 528);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(55, 17);
            this.label24.TabIndex = 90;
            this.label24.Text = "总 课 时:";
            // 
            // label25
            // 
            this.label25.AutoSize = true;
            this.label25.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label25.ForeColor = System.Drawing.Color.Black;
            this.label25.Location = new System.Drawing.Point(217, 528);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(47, 17);
            this.label25.TabIndex = 89;
            this.label25.Text = "座位号:";
            // 
            // label21
            // 
            this.label21.AutoSize = true;
            this.label21.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label21.ForeColor = System.Drawing.Color.Black;
            this.label21.Location = new System.Drawing.Point(170, 528);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(32, 17);
            this.label21.TabIndex = 88;
            this.label21.Text = "课时";
            // 
            // groupBox_jsfs
            // 
            this.groupBox_jsfs.Controls.Add(this.rbtn_y);
            this.groupBox_jsfs.Controls.Add(this.rbtn_t);
            this.groupBox_jsfs.Controls.Add(this.rbtn_ks);
            this.groupBox_jsfs.Location = new System.Drawing.Point(75, 485);
            this.groupBox_jsfs.Name = "groupBox_jsfs";
            this.groupBox_jsfs.Size = new System.Drawing.Size(160, 31);
            this.groupBox_jsfs.TabIndex = 87;
            this.groupBox_jsfs.TabStop = false;
            // 
            // rbtn_y
            // 
            this.rbtn_y.AutoSize = true;
            this.rbtn_y.Location = new System.Drawing.Point(106, 11);
            this.rbtn_y.Name = "rbtn_y";
            this.rbtn_y.Size = new System.Drawing.Size(35, 16);
            this.rbtn_y.TabIndex = 2;
            this.rbtn_y.Text = "月";
            this.rbtn_y.UseVisualStyleBackColor = true;
            // 
            // rbtn_t
            // 
            this.rbtn_t.AutoSize = true;
            this.rbtn_t.Location = new System.Drawing.Point(60, 11);
            this.rbtn_t.Name = "rbtn_t";
            this.rbtn_t.Size = new System.Drawing.Size(35, 16);
            this.rbtn_t.TabIndex = 1;
            this.rbtn_t.Text = "天";
            this.rbtn_t.UseVisualStyleBackColor = true;
            // 
            // rbtn_ks
            // 
            this.rbtn_ks.AutoSize = true;
            this.rbtn_ks.Checked = true;
            this.rbtn_ks.Location = new System.Drawing.Point(7, 11);
            this.rbtn_ks.Name = "rbtn_ks";
            this.rbtn_ks.Size = new System.Drawing.Size(47, 16);
            this.rbtn_ks.TabIndex = 4;
            this.rbtn_ks.TabStop = true;
            this.rbtn_ks.Text = "课时";
            this.rbtn_ks.UseVisualStyleBackColor = true;
            // 
            // label20
            // 
            this.label20.AutoSize = true;
            this.label20.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label20.ForeColor = System.Drawing.Color.Black;
            this.label20.Location = new System.Drawing.Point(490, 528);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(49, 17);
            this.label20.TabIndex = 86;
            this.label20.Text = "元/课时";
            // 
            // txt_ymks
            // 
            this.txt_ymks.BackColor = System.Drawing.SystemColors.Window;
            this.txt_ymks.Location = new System.Drawing.Point(417, 526);
            this.txt_ymks.Name = "txt_ymks";
            this.txt_ymks.ReadOnly = true;
            this.txt_ymks.Size = new System.Drawing.Size(70, 21);
            this.txt_ymks.TabIndex = 73;
            // 
            // txt_skdd
            // 
            this.txt_skdd.BackColor = System.Drawing.SystemColors.Window;
            this.txt_skdd.Location = new System.Drawing.Point(75, 462);
            this.txt_skdd.Name = "txt_skdd";
            this.txt_skdd.ReadOnly = true;
            this.txt_skdd.Size = new System.Drawing.Size(412, 21);
            this.txt_skdd.TabIndex = 67;
            // 
            // dateTimePicker_js
            // 
            this.dateTimePicker_js.Location = new System.Drawing.Point(547, 493);
            this.dateTimePicker_js.Name = "dateTimePicker_js";
            this.dateTimePicker_js.Size = new System.Drawing.Size(125, 21);
            this.dateTimePicker_js.TabIndex = 70;
            // 
            // dateTimePicker_ks
            // 
            this.dateTimePicker_ks.Location = new System.Drawing.Point(327, 494);
            this.dateTimePicker_ks.Name = "dateTimePicker_ks";
            this.dateTimePicker_ks.Size = new System.Drawing.Size(127, 21);
            this.dateTimePicker_ks.TabIndex = 69;
            // 
            // txt_bz
            // 
            this.txt_bz.BackColor = System.Drawing.SystemColors.Window;
            this.txt_bz.Location = new System.Drawing.Point(697, 493);
            this.txt_bz.Name = "txt_bz";
            this.txt_bz.ReadOnly = true;
            this.txt_bz.Size = new System.Drawing.Size(450, 52);
            this.txt_bz.TabIndex = 78;
            this.txt_bz.Text = "";
            // 
            // label19
            // 
            this.label19.AutoSize = true;
            this.label19.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label19.ForeColor = System.Drawing.Color.Black;
            this.label19.Location = new System.Drawing.Point(694, 466);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(43, 17);
            this.label19.TabIndex = 85;
            this.label19.Text = "备  注:";
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label18.ForeColor = System.Drawing.Color.Black;
            this.label18.Location = new System.Drawing.Point(486, 495);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(59, 17);
            this.label18.TabIndex = 84;
            this.label18.Text = "结束时间:";
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label17.ForeColor = System.Drawing.Color.Black;
            this.label17.Location = new System.Drawing.Point(260, 496);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(59, 17);
            this.label17.TabIndex = 83;
            this.label17.Text = "开始时间:";
            // 
            // FrmXyinfo
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.ClientSize = new System.Drawing.Size(1190, 632);
            this.Controls.Add(this.panel1);
            this.Name = "FrmXyinfo";
            this.Text = "协议信息";
            this.Controls.SetChildIndex(this.panel1, 0);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox_jsfs.ResumeLayout(false);
            this.groupBox_jsfs.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        private void showData(int xy_id)
        {
            XyEntity entity = this.xydao.GetEntity(xy_id);
            xyId = entity.qdxy_no;
            this.label_xyxm.Text = entity.qdxy_stu_name;
            this.label_xylxr.Text = entity.qdxy_stu_lxr;
            this.label_xydh.Text = entity.qdxy_stu_lxdh;
            this.label_xyfx.Text = entity.qdxy_stu_dep;
            this.label_xydz.Text = entity.qdxy_stu_address;
            this.label_jyxm.Text = entity.qdxy_tec_name;
            this.label_jynj.Text = entity.qdxy_tec_grade;
            this.label_jyzy.Text = entity.qdxy_tec_course;
            this.label_jydq.Text = entity.qdxy_tec_dep;
            this.label_jydh.Text = entity.qdxy_tec_lxdh;
            skSj = entity.qdxy_kcsj.Substring(3, 11);
            this.uCkcb1.SetCellData(
                int.Parse(entity.qdxy_kcsj.Substring(1, 1)), 
                CommonHelper.getTimesec(entity.qdxy_kcsj.Split(new char[]{'-',':'},3)[1]), 
                null, 
                entity.qdxy_kcsj.Split(new char[]{'-',']'},2)[1]);
            this.txt_skdd.Text = entity.qdxy_skdd;
            this.txt_fzmks.Text = entity.qdxy_fzmks;
            this.txt_ymks.Text = entity.qdxy_ymks;
            if (entity.qdxy_jsfs == "课时")
            {
                this.rbtn_ks.Checked = true;
            }
            else if (entity.qdxy_jsfs == "天")
            {
                this.rbtn_t.Checked = true;
            }
            else
            {
                this.rbtn_y.Checked = true;
            }
            this.dateTimePicker_ks.Text = entity.qdxy_ksrq;
            this.dateTimePicker_js.Text = entity.qdxy_jsrq;
            this.txt_bz.Text = entity.qdxy_bz;
            this.txt_zwh.Text = entity.qdxy_zwh;
            this.txt_zks.Text = entity.qdxy_zks;
            this.txt_km.Text = entity.qdxy_km;
            this.label_state.Text = entity.qdxy_zt;
        }

        public override void tsb_print_fun()
        {
            XybbEntity xybbEntity = new XybbEntity();

            xybbEntity.XyId = xyId;
            xybbEntity.Sksj = skSj;
            xybbEntity.Skdd = txt_skdd.Text;
            xybbEntity.Kcmc = txt_km.Text;
            xybbEntity.Jsrq=dateTimePicker_js.Value.ToString("yyyy-MM-dd");
            xybbEntity.Ksrq = dateTimePicker_ks.Value.ToString("yyyy-MM-dd");
            xybbEntity.Mcks = " ";
            xybbEntity.Mzcs = " ";
            xybbEntity.Ksfz = txt_fzmks.Text;
            if (rbtn_ks.Checked)
            {
                xybbEntity.Fkfs = "课时";
            }
            if (rbtn_t.Checked)
            {
                xybbEntity.Fkfs = "天";
            }
            if (rbtn_y.Checked)
            {
                xybbEntity.Fkfs = "月";
            }

            xybbEntity.Jemks = txt_ymks.Text;

            FrmXybb frmXybb = new FrmXybb(xybbEntity);
            frmXybb.ShowDialog();
        }
    }

}
